/**
 * Copyright (c) 2013 Axa Holding Belgium, SA. All rights reserved.
 * This software is the confidential and proprietary information of the AXA Group.
 */
package chabernac.gravidroid.model;

import junit.framework.TestCase;

public class VectorTest extends TestCase {
    public void testLenth() {
        Vector theVector = new Vector( 3, 4 );
        assertEquals( 5F, theVector.getLength() );
    }

    public void testDotProduct() {
        Vector theVector = new Vector( 1, 0 );
        Vector theVector2 = new Vector( 0, 1 );
        assertEquals( 0, theVector.dotProduct( theVector2 ), 0.0001f );

        Vector theVector3 = new Vector( 1, 0 );

        assertEquals( 1f, theVector.dotProduct( theVector3 ), 0.0001f );
    }
}
